package com.gms.entity.place;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "place")//指定表名
public class Place implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "place_id", type = IdType.AUTO)
    private Integer place_id;
    @TableField(value = "place_no")
    private String place_no;
    @TableField("place_storey")
    private String place_storey;
    @TableField("place_type")
    private String place_type;
    @TableField("place_leader")
    private String place_leader;
    @TableField("place_state")
    private String place_state;

    public Integer getPlace_id() {
        return place_id;
    }

    public void setPlace_id(Integer place_id) {
        this.place_id = place_id;
    }

    public String getPlace_no() {
        return place_no;
    }

    public void setPlace_no(String place_no) {
        this.place_no = place_no;
    }

    public String getPlace_storey() {
        return place_storey;
    }

    public void setPlace_storey(String place_storey) {
        this.place_storey = place_storey;
    }

    public String getPlace_type() {
        return place_type;
    }

    public void setPlace_type(String place_type) {
        this.place_type = place_type;
    }

    public String getPlace_leader() {
        return place_leader;
    }

    public void setPlace_leader(String place_leader) {
        this.place_leader = place_leader;
    }

    public String getPlace_state() {
        return place_state;
    }

    public void setPlace_state(String place_state) {
        this.place_state = place_state;
    }

    @Override
    public String toString() {
        return "Place{" +
                "place_id=" + place_id +
                ", place_no='" + place_no + '\'' +
                ", place_storey='" + place_storey + '\'' +
                ", place_type='" + place_type + '\'' +
                ", place_leader='" + place_leader + '\'' +
                ", place_state='" + place_state + '\'' +
                '}';
    }
}
